package com.demo.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.gulimall.product.entity.Category;
import com.demo.gulimall.product.vo.Catelog2Vo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author Chen Yuan
 */

@Service
public interface CategoryService extends IService<Category> {


	List<Category> listWithTree();

	public List<Category> getLevel1Categorys();

	public Map<String, List<Catelog2Vo>> getCategoriesJsonFromDb();
}
